article {
animation-name : displaceContent;
animation-duration : 1s;
animation-delay : 4s;
animation-iteration-count : 1;
animation-fill-mode : forwards;
}
@keyframes displaceContent {
from { transform : translateY(0em) }
to { transform : translateY(3em) } /* slide down to make room for advertisements */
}
div{
animation-name: rotateElement;
animation-duration: 6s;
width: 100px;
height: 100px;
padding: 10px;
text-align: center;
background: yellow;
border: 3px dashed blue;
}
@keyframes rotateElement{
from{
transform: rotate(0deg);
}
to{
transform: rotate(360deg);
}
}